/*
 * Group.java
 *
 */

package com.asaga.tools;

import java.sql.*;

/**
 * Discussion group interface for Autism
 * web application
 * @author Charles Gunti
 */
public interface Group {
    
    /**
     * Creates groups
     */
    boolean createGroup(String gName,String gDesc,String gCreator,
                                Connection cn);
    /**
     * Removes groups
     */
    boolean deleteGroup(int gId,Connection cn);
    /**
     * Adds users to discussion groups
     */
    boolean addToGroup(int gId,int pId,Connection cn);
    /**
     * Removes users from discussion groups
     */
    boolean removeFromGroup(int gId,int pId,Connection cn);
    
    public boolean updateGroup(Connection cn);
}
